bin/commit: Add '=' to --statoverride
authorColin Walters <walters@verbum.org>
Fri, 30 Jun 2017 13:40:37 +0000 (09:40 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 30 Jun 2017 21:23:48 +0000 (21:23 +0000)
commitcd7d35945af7c11891919b2f2ffae65532b0af31
tree642be5e91f7ddd2eaee3087079fb2f677dfc2da6
parente3a540a606fe75c588e0b5fc7fc234e86d49f244
bin/commit: Add '=' to --statoverride

Previously, we only supported additions in the statoverride file;
it was mainly for adding the setuid bit without having that physically
on disk.

However, for testing a change to `bare-user` handling around *unreadable*
files (which happens for `/etc/shadow` in host content), I need a way
to write that into a repo in the test suite.

I'm not actually aware of a non-test-suite use case for this; a more
sophisticated user is going to be using the API directly, which can already do
this. But we need it for tests at least.

Closes: #989
Approved by: jlebon
src/ostree/ot-builtin-commit.c
tests/basic-test.sh